package com.lx.zxs.mapper;
import com.lx.zxs.entity.Contacts;
import com.lx.zxs.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ContactsMapper {

     //void insertContactList(Integer uid, Integer lid, Integer direction, Integer type, String content,String linkman);

     /**
      * 根据条件查询消息
      * @param keyWords
      * @param id
      * @return
      */
     List<Contacts> queryContactsByParms(@Param("keyWords") String keyWords, @Param("id") Integer id);

     /**
      * 添加消息
      * @param contacts
      * @return
      */
     int insertContics(Contacts contacts);

     /**
      * 修改消息
      * @param contacts
      * @return
      */
     int updateContics(Contacts contacts);

     /**
      * 删除消息
      * @param id
      * @return
      */
     int delContacts(int id);

}